package com.ihrm.system.service.api;

import com.github.pagehelper.PageInfo;
import com.ihrm.domain.system.User;

import java.util.List;


public interface UserService {

    void add(User user);


    void update(User user);


    void deleteById(String id);


    User findById(String id);


    PageInfo<User> getUserListPageInfo(String companyId, String departmentId, int page, int size);


    void assignRoles(String userId, List<String> roleIds);


    User findByMobile(String mobile);


    User selectUserAndRoleByPrimaryKey(String id);


    List<User> findAll(String companyId);


    void saveAll(List<User> list, String companyId, String companyName);


}
